<div class="login">
  <form class="ta-c" name="formLogin">
    <div class="form-inline ta-l p-r">
      <span class="icon account d-ib"></span>
      <input validator="required,phone" ng-model="user.phone" type="text" name="phone" placeholder="输入手机号">
    </div>
    <div class="form-inline ta-l p-r">
      <span class="icon lock d-ib"></span>
      <input validator="required,password" ng-model="user.password" type="password" name="password" placeholder="输入密码">
    </div>
    <button class="login-btn" validation-submit="formLogin" ng-click="submit();">登录</button>
    <button class="register-btn" ui-sref="register">注册</button>
  </form>
</div>
